from sqlalchemy import Column, Integer, VARCHAR, ForeignKey, DateTime, Enum
from sqlalchemy.orm import relationship
from models.base_class import Base, gen_uuid


class Technology(Base):
    """
    技术表
    """
    __tablename__ = 'technologies'
    level = Column(Enum('architecture', 'database', 'cache', 'code', 'other'), nullable=False, comment='技术层面')
    tool_name = Column(VARCHAR(128), nullable=False, comment='工具名称')
    name = Column(VARCHAR(128), nullable=False, comment='技术/功能名称')
    __table_args__ = ({'comment': '技术表'})
